import random

num = []
for i in range(0, 8):
    num.append(1)
    num[i] = random.randint(1, 33)

score1 = 0
score2 = 0
score3 = 0
score4 = 0
value = []
for j in range(0, 10000):
    res = []
    for k in range(0, 8):
        res.append(1)
        res[k] = random.randint(1, 33)
    value.append(1)
    value[j] = res

list3 = []
for i in range(0, len(value)):
    for j in num:
        for k in value[i]:
            if j == k:
                list3.append(j)
    if len(list3) == 5:
        score4=score4+1
    if len(list3) == 6:
        score3=score3+1
    if len(list3) == 7:
        score2=score2+1
    if len(list3) == 8:
        score1=score1+1
    list3 = []

print("一等奖{}个".format(score1))
print("二等奖{}个".format(score2))
print("三等奖{}个".format(score3))
print("四等奖{}个".format(score4))
